package com.myteam.fugaocrm.service;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.myteam.fugaocrm.modle.FgPosition;
import com.myteam.fugaocrm.sqldb.mapper.FgPositionMapper;

@Service
public class PositionServiceImpl implements BaseService {

	@Resource protected FgPositionMapper fgPositionMapper;
	
	public List<FgPosition> all() {
		return fgPositionMapper.all();
	}
	
	public void deleteOne(Integer positionId) {
		fgPositionMapper.deleteOne(positionId);
	}
	
	public void insert(Map<String, Object> params) {
		fgPositionMapper.insert(params);
	}
	
	public void update(Map<String, Object> params) {
		fgPositionMapper.update(params);
	}
	
}
